ReferenceError: fs is not defined node js

116

ReferenceError: fs is not defined node js -

// Define the `fs` at the beginning of the script
const fs = require('fs');

referenceerror document is not defined node js -

var jsdom = require("jsdom");
var JSDOM = jsdom.JSDOM;

Comments

Submit
0 Comments